export const getQueryString = key => {
  const reg = new RegExp("(^|&)" + key + "=([^&]*)(&|$)");

  const result = window.location.hash.split("?")[1].match(reg);

  return result ? decodeURIComponent(result[2]) : null;
}
